<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/24
  Time: 21:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="bean.Message" %>
<%@ page import="bean.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>登陆界面</title>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content=" Master  Login Form Widget Tab Form,Login Forms,Sign up Forms,Registration Forms,News letter Forms,Elements"/>
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <link href="//fonts.googleapis.com/css?family=Cormorant+SC:300,400,500,600,700" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">

    <script type="text/javascript" src="js/move-top.js"></script>
    <script type="text/javascript" src="js/easing.js"></script>
    -->
    <link href="css/style1.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/usercenter.css" rel="stylesheet" type="text/css" media="all" />


    <script type="text/javascript">
        jQuery(document).ready(function($) {
            $(".scroll").click(function(event){
                event.preventDefault();
                $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
            });
        });
    </script>
</head>

<body>

<%
    String name=null;
    String email=null;
    String phone=null;
    String img=null;
    //String username=null;
    Message message=(Message)request.getSession().getAttribute("LocalUser");
    if(message!=null)
    {
        name=message.getname();
        email=message.gete_mail();
        phone=message.getPhone();
        img=message.getimg();
        //username=messageDTO.getInfo().getusername();

    }
%>
<div class="padding-all">
    <div class="header" style="padding-bottom: 30px;">
        <h1>用户中心</h1>
    </div>

    <div class="design-w3l">
        <div class="pic">
            <div class="pict" >
                <form action="Upload">
                <img class="W_face_radius" src="images/<%=img %>" width="250" height="250" alt=""></form>
            </div>
        </div>
        <div class="usern">
            <span class="username">///</span>
        </div>
        <div class="rgs">
            <div class="tit">
                User name
            </div>
            <div class="inp"><%=name %>
            </div>
        </div>
        <div class="rgs">
            <div class="tit">
                Telephone
            </div>
            <div class="inp"><%=phone %>
            </div>
        </div>
        <div class="rgs">
            <div class="tit">
                Email
            </div>
            <div class="inp"><%=email %>
            </div>
        </div>


        <input type="submit" value="exit" style="margin-top: 30px;">
        <input type="submit" value="上传照片" style="margin-top: 30px;margin-left: 50px;">
    </div>

    <div class="footer">
        <p>© 2019  DGUT  Grade  2017  software engineering (excellence  program)  陈思颖</p>
    </div>
</div>
</body>
</html>
